<h2>Confirmation de la fiche bilan de l'action</h2>
<br>

<div id='page'>

	<div id="table_premiere">
		<table>
			<tr>
				<td class='colonne1'><h2><?php echo 'A31';?></h2></td>
				<td colspan='2' class='colonne2'><h2><?php echo $adc->getTitre();?></h2></td>
			</tr>
			<tr>
				<td class='colonne1'>Description</td>
				<td colspan="2" id="colonne2"><?php echo $adc->getCommentaire() ?></td>
			</tr>
			<tr>
				<?php 
					if($adc->getTheme()->getLibelle() == "FORUM")
					{
						echo 	'
									<td class="colonne1">Travaille effectué</td>
									<td class="colonne2" colspan="2">'.$fba->getTravailEffectue().'
									</td>
								';
					}
					else
					{
						echo 	'
									<td class="colonne1">Tâches à réaliser</td>
									<td class="colonne2" colspan="2">
										<div id="table_secondaire">
								';
						if($tache)
						{
							echo '
									<table id="tableTache">
										<tr>
											<th>Tâche</th>
											<th>Echéance</th>
											<th class="DerniereColonne">Responsable</th>
										</tr>';
											foreach($tache as $t)
											{
												echo 	'
															<tr>
																<td>'.$t->getLibelle().'</td>
																<td>'.$t->getEcheance().'</td>
																<td class="DerniereColonne">'.$t->getEtudiant($adc->getId())->getNom().' '.$t->getEtudiant($adc->getId())->getPrenom().'</td>
															</tr>
														';
											}
							echo	'
										</table>
									';
						}

						echo '
									</div>
								</td>
							';
					}
				?>
			</tr>
			<tr>
				<td class='colonne1'>Echéances</td>
				<td colspan='2' class='colonne2'>
					<ul>
						<li><?php echo putDateJJMMAAAA($adc->getDate()) ?></li>
					</ul>
				</td>
			</tr>
			<tr>
				<td class='colonne1'>Etudiants</td>
				<td colspan='2' class='colonne2'>
					<ul>
						<?php
						 	foreach($etudiant as $e)
								echo '<li>'.$e->getNom().' '.$e->getPrenom().' - '.$e->getGroupe().'</li>';
						?>
					</ul>
				</td>
			</tr>
			<tr>
				<td class='colonne1'>Contact encadrant</td>
				<td colspan='2' class='colonne2'><?php echo $adc->getEnseignant()->getNom().' '.$adc->getEnseignant()->getPrenom(); ?></td>
			</tr>
			<tr>
				<td class='colonne1'>Fournisseurs et budgets</td>
				<td class='colonne2' colspan="2">
					<div id="table_secondaire">
						<?php
							if(isset($depense))
							{
								echo '
										<table>
											<tr>
												<th>Nature</th>
												<th>Budget</th>
												<th class="DerniereColonne">Fournisseur</th>
											</tr>
									';
										foreach($depense as $d)
										{
											echo 	'
														<tr>
															<td>'.$d->getLibelle().'</td>
															<td>'.$d->getBudget().' euros</td>
															<td class="DerniereColonne">'.$d->getFournisseur().'</td>
														</tr>
													';
										}
								echo '
										</table>
									';
							}
						?>
					</div>
				</td>
			</tr>
			<tr>
				<td class='colonne1'>Recettes</td>
				<td class='colonne2' colspan="2">
					<div id="table_secondaire">
						<?php
								if(isset($recette))
								{
									echo '
											<table>
												<tr>
													<th>Nature</th>
													<th class="DerniereColonne">Budget</th>
												</tr>
										';

									foreach($recette as $r)
									{
										echo 	'
													<tr>
														<td>'.$r->getLibelle().'</td>
														<td class="DerniereColonne">'.$r->getBudget().' euros</td>
													</tr>
												';
									}
									
									echo'
											</table>
										';
								}
						?>
					</div>
				</td>
			</tr>
			<tr>
				<td class='colonne1'>Bilan</td>
				<td class='colonne2' colspan="2">
					<?php
						echo 	'
									<h3>Point Positifs :</h3>
										<p>'.$fba->getPointPositif().'</p><br>
									<h3>Point Négatifs :</h3>
										<p>'.$fba->getPointNegatif().'</p><br>
									<h3>Bon à savoir :</h3>
										<p>'.$fba->getBonASavoir().'</p><br>
									<h3>Suggestion :</h3>
										<p>'.$fba->getSuggestion().'</p><br>
								';
					?>
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="boutons">
		<li><a href="<?php echo base_url()?>index.php/FichesAction/formulaire/modifier/<?php echo $idAction?>"><button type="button">Modifier</button></a></li>
		<li><a href="<?php echo base_url()?>index.php/FichesAction/confirmerFiche/<?php echo $idAction?>"><button type="button">Confirmer</button></a></li>
 	</div>



	
	
	